<?php
session_start();
define('__DS__', DIRECTORY_SEPARATOR);
include dirname(__FILE__) . '/lib/captcha/captcha.php';

$captcha = new SimpleCaptcha();

$captcha->width  = 80;
$captcha->height = 40;

$rand                = mt_rand(1234, 9999);
$_SESSION['captcha'] = $rand;

$captcha->CreateImage($rand);